home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / blox.swf / scripts / DefineButton2_515 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2006-06-13  |  392 b   |  15 lines

  1. on(release){
  2.    if(_root.Time > 1)
  3.    {
  4.       _root.TimeRound = 0;
  5.       _root.Score += Math.Round(_root.Time / 10) * 10;
  6.       _root.LevelScore = _root.Score - _root.LastScore;
  7.       _root.Time = 0;
  8.    }
  9.    _root.SoundLevelComplete.stop();
  10.    _root.SoundBonusCount.stop();
  11.    _root.SoundPushButton.start();
  12.    _root.Score += Math.round(_root.Time);
  13.    _root.GotoNextLevel();
  14. }
  15.